package com.ypy.flexiplug.utils;

public abstract class StringUtils {
    public static boolean isEmpty(Object str) {
        return str == null || "".equals(str);
    }

    public static boolean isNotEmpty(Object str) {
        return !isEmpty(str);
    }

    public static boolean isNotBlank(Object str) {
        return !isEmpty(str);
    }

    public static boolean isBlank(String str) {
        if (str == null || str.length() == 0)
            return true;
        return  false;
    }

    public static boolean isNotBlank(String str) {
        return !isBlank(str);
    }

    public static boolean hasText(String str) {
        if (str == null || str.trim().length() == 0)
            return false;
        return true;
    }

    public static boolean hasNotText(String str) {
        return !hasText(str);
    }

}